package com.cmc.cloud.cmclink.doc.vo.specialcargodgpackingvo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 特种货审批dg包装 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
public class PackingCreateOrUpdateVO {

    @Schema(description = "包装更新需要传")
    private Long id;

    @Schema(description = "DG_ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27162")
    @NotNull(message = "DG_ID不能为空")
    private Long dgId;

    @Schema(description = "包装代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "包装代码不能为空")
    @Length(max = 200, message = "包装代码支持最大长度{max}")
    private String packingCode;

    @Schema(description = "包装件数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "包装件数不能为空")
    @Length(max = 20, message = "包装件数支持最大长度{max}")
    private String packings;

    @Schema(description = "包装类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotBlank(message = "包装类型不能为空")
    @Length(max = 10, message = "包装类型支持最大长度{max}")
    private String packingType;

}
